<?php
include  __DIR__.'/common/common.php';
$uid=$_POST['uid'];
$data=mysqli_query($mysql,"SELECT * FROM article WHERE uid=$uid");
$arr=array();
while ($a=mysqli_fetch_assoc($data))
{
    $arr[]=$a;
}
mysqli_free_result($data);
echo json_encode($arr);